84% wp-joomag

Code Review | WP Joomag

WordPress plugin WP Joomag scored84%from 54 tests.

About plugin

  • Plugin page: wp-joomag
  • Plugin version: 2.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2012
  • Latest release: Nov 3, 2021
  • Number of updates: 23
  • Update frequency: every 144.6 days
  • Top authors: joomag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /13,661 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WP Joomag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.02 ▼1.10
Dashboard /wp-admin3.33 ▲0.0342.18 ▼8.05
Posts /wp-admin/edit.php3.38 ▲0.0347.51 ▼1.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.64 ▼7.87
Media Library /wp-admin/upload.php3.26 ▲0.0331.12 ▼4.30

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Joomag
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.121.77 ▼0.0146.62 ▼0.46
Dashboard /wp-admin2,206 ▲245.76 ▼0.09102.75 ▼6.3940.33 ▼0.55
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0336.90 ▼3.4733.85 ▼0.90
Add New Post /wp-admin/post-new.php1,537 ▼618.30 ▼0.13643.60 ▲10.9358.07 ▲2.45
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.02103.63 ▲4.4042.53 ▲0.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-joomag/wp-joomag.php:200

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Copy WordPress.com embed code from Joomag.com.), #2 (Paste the embed code into the post editor.), #3 (An example of Joomag viewer embedded on a wordpress blog post.)
The official readme.txt might help

wp-joomag/wp-joomag.php Passed 13 tests

The main PHP file in "WP Joomag" ver. 2.5.2 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
Embed Joomag publications inside a post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13614153

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin