84% wpg2mod

Code Review | WPG2Mod

WordPress plugin WPG2Mod scored84%from 54 tests.

About plugin

  • Plugin page: wpg2mod
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Mar 10, 2019
  • Number of updates: 6
  • Update frequency: every 3.3 days
  • Top authors: edobees (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /668 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.89ms] Passed 4 tests

A check of server-side resources used by WPG2Mod
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.57 ▲2.53
Dashboard /wp-admin3.45 ▲0.1550.00 ▼1.30
Posts /wp-admin/edit.php3.57 ▲0.2152.34 ▲3.89
Add New Post /wp-admin/post-new.php6.05 ▲0.1789.18 ▼14.82
Media Library /wp-admin/upload.php3.38 ▲0.1539.68 ▲2.02
WPG2Mod /wp-admin/options-general.php?page=WPG2Mod3.3438.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WPG2Mod
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.47 ▲0.331.81 ▲0.2342.68 ▲1.90
Dashboard /wp-admin2,206 ▲325.61 ▲0.0692.72 ▼0.1541.47 ▼4.64
Posts /wp-admin/edit.php2,108 ▲112.00 ▼0.0138.29 ▲3.5336.09 ▼0.02
Add New Post /wp-admin/post-new.php1,533 ▲723.02 ▼0.18671.93 ▼12.5958.09 ▲7.78
Media Library /wp-admin/upload.php1,405 ▲54.22 ▲0.01112.78 ▲3.7146.67 ▲2.88
WPG2Mod /wp-admin/options-general.php?page=WPG2Mod8442.0125.2135.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpg2mod/public/wpg2mod-public.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: wordpress gallery, tool, import, modula image gallery, classicpress...

wpg2mod/wpg2mod.php Passed 13 tests

Analyzing the main PHP file in "WPG2Mod" version 1.0.1
61 characters long description:
Import and convert WordPress Galleries into Modula Galleries.

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 detected1,146 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5369499720
PO File26262202
JavaScript17185116
CSS2333108

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin