84% tomi-page-tagging

Code Review | Tomi Page Tagging

WordPress plugin Tomi Page Tagging scored84%from 54 tests.

About plugin

  • Plugin page: tomi-page-tagging
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 21, 2015
  • Latest release: May 22, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: tomi33 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /943 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Tomi Page Tagging
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.34 ▼7.10
Dashboard /wp-admin3.33 ▲0.0348.55 ▼6.05
Posts /wp-admin/edit.php3.38 ▲0.0354.90 ▼1.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0498.88 ▼14.91
Media Library /wp-admin/upload.php3.26 ▲0.0338.74 ▲0.04
Tomi Page Tagging Settings /wp-admin/options-general.php?page=tomi_page_tagging_options3.2234.78
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2538.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
tomi_page_tagging_options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tomi Page Tagging
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.25 ▼0.361.56 ▼0.4742.62 ▼5.87
Dashboard /wp-admin2,203 ▲235.57 ▼0.1189.20 ▲1.8040.64 ▲1.78
Posts /wp-admin/edit.php2,105 ▲51.98 ▼0.1638.81 ▲2.5835.16 ▲0.31
Add New Post /wp-admin/post-new.php1,532 ▼323.75 ▲5.43669.08 ▲19.6353.67 ▼22.40
Media Library /wp-admin/upload.php1,408 ▲114.16 ▼0.0299.44 ▼2.7445.11 ▼1.74
Tomi Page Tagging Settings /wp-admin/options-general.php?page=tomi_page_tagging_options8371.9922.1926.17
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3242.1228.9132.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tomi-page-tagging/tomi-page-tags.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: pages, tags, page tags

tomi-page-tagging/tomi-page-tags.php 92% from 13 tests

"Tomi Page Tagging" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("tomi-page-tagging.php" instead of "tomi-page-tags.php")

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
Success! There were no dangerous files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1311979

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected