84% ascendoor-metadata-manager

Code Review | Ascendoor Metadata Manager

WordPress plugin Ascendoor Metadata Manager scored 84% from 54 tests.

About plugin

  • Plugin page: ascendoor-metadat...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2021
  • Latest release: Oct 28, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ascendoor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼4.20ms] Passed 4 tests

This is a short check of server-side resources used by Ascendoor Metadata Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.58 ▼5.78
Dashboard /wp-admin3.53 ▲0.2344.27 ▼3.26
Posts /wp-admin/edit.php3.64 ▲0.2953.74 ▲6.24
Add New Post /wp-admin/post-new.php6.14 ▲0.2589.31 ▼7.83
Media Library /wp-admin/upload.php3.45 ▲0.2336.44 ▲0.06
Ascendoor Metadata Manager /wp-admin/options-general.php?page=ascendoor_metadata_manager3.4229.94

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ascendoor Metadata Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.52 ▼0.911.65 ▼0.1439.04 ▼8.48
Dashboard /wp-admin2,217 ▲295.85 ▲0.97110.06 ▲10.6142.28 ▲1.73
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0241.54 ▲6.8235.89 ▲4.01
Add New Post /wp-admin/post-new.php6,545 ▲5,01220.33 ▼2.99921.37 ▲242.7056.50 ▲1.25
Media Library /wp-admin/upload.php1,399 ▲144.36 ▲0.0696.21 ▼5.2141.48 ▼1.95
Ascendoor Metadata Manager /wp-admin/options-general.php?page=ascendoor_metadata_manager8682.0627.7128.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: meta_data in wp-content/plugins/ascendoor-metadata-manager/admin/partials/ascendoor-metadata-manager-admin.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ascendoor-metadata-manager/admin/partials/ascendoor-metadata-manager-admin.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ascendoor-metadata-manager/admin/partials/ascendoor-metadata-manager-admin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

ascendoor-metadata-manager/ascendoor-metadata-manager.php Passed 13 tests

The primary PHP file in "Ascendoor Metadata Manager" version 1.0.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
View and manage posts, terms, users and comments metadata.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,523 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP142476441,180
JavaScript1230188
CSS140155

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity17.22
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods55
▷ Static methods712.73%
▷ Public methods4276.36%
▷ Protected methods00.00%
▷ Private methods1323.64%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin