79% one-thousand-nine-hundred-and-ninety-nineify

Code Review | One Thousand Nine Hundred and Ninety-Nineify

WordPress plugin One Thousand Nine Hundred and Ninety-Nineify scored79%from 54 tests.

About plugin

  • Plugin page: one-thousand-nine...
  • Plugin version: 0.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-4.9.6
  • WordPress version: 6.3.1
  • First release: May 22, 2018
  • Latest release: May 24, 2018
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: thomasplevy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /802 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.61ms] Passed 4 tests

An overview of server-side resources used by One Thousand Nine Hundred and Ninety-Nineify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.80 ▼33.63
Dashboard /wp-admin2.09 ▼1.255.83 ▼55.63
Posts /wp-admin/edit.php2.09 ▼1.265.37 ▼42.14
Add New Post /wp-admin/post-new.php2.09 ▼3.795.35 ▼91.03
Media Library /wp-admin/upload.php2.09 ▼1.145.83 ▼30.96

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options
onek99ify_stats
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_onek99ify_email
db_upgraded
widget_recent-posts
widget_onek99ify_stats
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for One Thousand Nine Hundred and Ninety-Nineify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.28 ▼0.071.66 ▼0.2945.23 ▲9.18
Dashboard /wp-admin2,195 ▲155.60 ▼0.0688.35 ▲0.3036.70 ▼1.15
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0640.28 ▲3.3734.08 ▲0.99
Add New Post /wp-admin/post-new.php1,537 ▲218.61 ▲0.43638.20 ▲23.4283.94 ▲16.07
Media Library /wp-admin/upload.php1,403 ▲94.21 ▲0.02103.74 ▲1.8382.68 ▲40.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/one-thousand-nine-hundred-and-ninety-nineify/includes/class-onek99ify-stats.php+37
    Non-static method OneK99ify_Stats::init() should not be called statically
  • The uninstall procedure has failed, leaving 9 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_onek99ify_email
    • widget_onek99ify_stats
    • db_upgraded
    • onek99ify_stats
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: wcoc plugin-a-palooza 2018, awesome, web 10, definetly a real plugin, 1999...

one-thousand-nine-hundred-and-ninety-nineify/onekninetynineify.php 85% from 13 tests

The main file in "One Thousand Nine Hundred and Ninety-Nineify" v. 0.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("one-thousand-nine-hundred-and-ninety-nineify.php" instead of "onekninetynineify.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
No dangerous file extensions were detected627 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP11142240435
CSS4124101
JavaScript66410076
Markdown19015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods31
▷ Static methods39.68%
▷ Public methods2890.32%
▷ Protected methods00.00%
▷ Private methods39.68%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants3
▷ Global constants3100.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