78% maps-deriction

Code Review | Maps Deriction

WordPress plugin Maps Deriction scored78%from 54 tests.

About plugin

  • Plugin page: maps-deriction
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: Jan 20, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: naples (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,397 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.01MB] [CPU: ▼9.62ms] Passed 4 tests

This is a short check of server-side resources used by Maps Deriction
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.55 ▼0.70
Dashboard /wp-admin3.33 ▼0.0245.94 ▼15.49
Posts /wp-admin/edit.php3.38 ▲0.0248.58 ▼2.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.88 ▼19.77
Media Library /wp-admin/upload.php3.25 ▲0.0237.45 ▲3.88
Location /wp-admin/edit.php?post_type=locate3.2934.24
Add Location /wp-admin/post-new.php?post_type=locate3.2840.41

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Maps Deriction
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12113.66 ▼0.722.02 ▲0.2844.12 ▲0.03
Dashboard /wp-admin2,240 ▲524.84 ▼0.9796.78 ▼22.0338.80 ▼4.85
Posts /wp-admin/edit.php2,120 ▲282.01 ▼0.0138.94 ▲1.0838.36 ▲6.64
Add New Post /wp-admin/post-new.php1,376 ▼13817.16 ▼0.32603.14 ▼36.2349.59 ▼11.80
Media Library /wp-admin/upload.php1,419 ▲284.33 ▲0.07101.21 ▼1.2538.08 ▼8.42
Location /wp-admin/edit.php?post_type=locate1,0901.9931.1029.80
Add Location /wp-admin/post-new.php?post_type=locate1,6072.6351.0752.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/maps-deriction/inc/naples2_post.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maps-deriction/inc/naples2_register_post.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/maps-deriction/inc/naples2_post_fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maps-deriction/inc/naples2_generate.php:205

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

maps-deriction/Maps-Deriction.php 92% from 13 tests

The main file in "Maps Deriction" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maps-deriction.php" instead of "Maps-Deriction.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected369 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5729369

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin