77% psyco-maps

Code Review | Psyco Maps

WordPress plugin Psyco Maps scored77%from 54 tests.

About plugin

  • Plugin page: psyco-maps
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-4.9.6
  • WordPress version: 6.3.1
  • First release: May 7, 2018
  • Latest release: Jun 15, 2018
  • Number of updates: 10
  • Update frequency: every 4.1 days
  • Top authors: carmine96 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.11ms] Passed 4 tests

Server-side resources used by Psyco Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0346.56 ▲2.21
Dashboard /wp-admin3.34 ▲0.0348.41 ▼6.96
Posts /wp-admin/edit.php3.39 ▲0.0352.58 ▼8.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.90 ▼6.18
Media Library /wp-admin/upload.php3.26 ▲0.0339.12 ▲1.21

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Psyco Maps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8513.92 ▼0.5027.65 ▲25.3135.08 ▼16.30
Dashboard /wp-admin2,208 ▲375.67 ▲0.0694.60 ▼17.4982.28 ▲33.65
Posts /wp-admin/edit.php2,120 ▲173.66 ▲1.6379.23 ▲27.9940.29 ▲0.35
Add New Post /wp-admin/post-new.php1,715 ▲17025.27 ▲2.09742.49 ▲64.2238.64 ▼40.53
Media Library /wp-admin/upload.php1,425 ▲254.25 ▲0.02100.79 ▼13.9469.95 ▲14.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/psyco-maps/include/marker-maps.php
    • > /wp-content/plugins/psyco-maps/include/create-maps_old.php
  • 75× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: address in wp-content/plugins/psyco-maps/include/create-maps_old.php on line 3
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/psyco-maps/include/marker-maps.php on line 3
    • > PHP Notice
      Undefined variable: rand in wp-content/plugins/psyco-maps/include/create-maps.php on line 3
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/psyco-maps/include/marker-maps.php on line 1
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/psyco-maps/include/marker-maps.php on line 13
    • > PHP Notice
      Undefined variable: maps_id in wp-content/plugins/psyco-maps/include/create-maps_old.php on line 30
    • > PHP Notice
      Undefined variable: maps_id in wp-content/plugins/psyco-maps/include/create-maps_old.php on line 1
    • > PHP Notice
      Undefined variable: description in wp-content/plugins/psyco-maps/include/create-maps_old.php on line 35
    • > PHP Notice
      Undefined variable: lat in wp-content/plugins/psyco-maps/include/marker-maps.php on line 2
    • > PHP Notice
      Undefined variable: rand in wp-content/plugins/psyco-maps/include/create-maps.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Screenshots: A description for screenshot #2 is required in psyco-maps/assets to your readme.txt
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

psyco-maps/psyco-maps.php 92% from 13 tests

This is the main PHP file of "Psyco Maps" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected706 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP76011369
CSS24113217
JavaScript1313120

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
map.png0.74KB0.79KB0.00%