90% mcninja-post-styles

Code Review | McNinja Post Styles

WordPress plugin McNinja Post Styles scored90%from 54 tests.

About plugin

  • Plugin page: mcninja-post-styles
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: May 28, 2014
  • Latest release: Jan 7, 2015
  • Number of updates: 10
  • Update frequency: every 22.4 days
  • Top authors: TomHarrigan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.66ms] Passed 4 tests

This is a short check of server-side resources used by McNinja Post Styles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.08 ▲3.96
Dashboard /wp-admin3.42 ▲0.0848.81 ▼8.89
Posts /wp-admin/edit.php3.54 ▲0.1845.31 ▲0.63
Add New Post /wp-admin/post-new.php6.00 ▲0.1281.73 ▼7.19
Media Library /wp-admin/upload.php3.34 ▲0.1134.06 ▼3.17

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

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

Browser metrics Passed 4 tests

A check of browser resources used by McNinja Post Styles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.051.68 ▲0.0143.40 ▲3.91
Dashboard /wp-admin2,197 ▲175.53 ▼0.0985.23 ▼2.5741.82 ▼1.20
Posts /wp-admin/edit.php2,102 ▲22.00 ▲0.0234.38 ▼1.4535.92 ▲2.10
Add New Post /wp-admin/post-new.php6,318 ▲4,78126.04 ▲7.71901.74 ▲237.0954.72 ▼6.52
Media Library /wp-admin/upload.php1,402 ▲24.23 ▼0.0295.25 ▼23.3243.09 ▼3.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

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 issues were found

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
5 plugin tags: formatting, post formats, taxonomy, excerpt, style

mcninja-post-styles/mcninja-post-styles.php 92% from 13 tests

"McNinja Post Styles" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

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 detected583 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2103220463
CSS1220120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity111.00
▷ Minimum class complexity111.00
▷ Maximum class complexity111.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods13.12%
▷ Public methods32100.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
PNG images were not found in this plugin