10% wp-jerusalem-post

Code Review | WP Jerusalem Post

WordPress plugin WP Jerusalem Post scored 10% from 54 tests.

About plugin

  • Plugin page: wp-jerusalem-post
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5
  • WordPress version: 6.3.1
  • First release: May 13, 2013
  • Latest release: Apr 7, 2016
  • Number of updates: 9
  • Update frequency: every 117.9 days
  • Top authors: areimann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,021 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-jerusalem-post/jerusalem-posts-widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; jPostWidget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼62.22ms] Passed 4 tests

This is a short check of server-side resources used by WP Jerusalem Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1810.25 ▼35.83
Dashboard /wp-admin2.29 ▼1.0113.06 ▼44.43
Posts /wp-admin/edit.php2.29 ▼1.0612.36 ▼42.25
Add New Post /wp-admin/post-new.php2.29 ▼3.5913.64 ▼126.36
Media Library /wp-admin/upload.php2.29 ▼0.9411.40 ▼22.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_jpostwidget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Jerusalem Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1313.23 ▼1.621.87 ▲0.0644.42 ▼3.12
Dashboard /wp-admin2,206 ▼05.86 ▲0.01108.15 ▲1.8637.39 ▼6.15
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0339.03 ▲5.3135.79 ▲0.95
Add New Post /wp-admin/post-new.php1,537 ▼023.35 ▲0.27673.20 ▲41.7458.80 ▲0.48
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.03111.60 ▲11.5443.98 ▲1.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in jPostWidget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_jpostwidget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-jerusalem-post/jerusalem-posts-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-jerusalem-post/jerusalem-posts-widget.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: jpostcom, feed, jpost, israel, jerusalem

wp-jerusalem-post/wp-jerusalem-posts.php 92% from 13 tests

The principal PHP file in "WP Jerusalem Post" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-jerusalem-post.php" instead of "wp-jerusalem-posts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected248 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34829239
CSS1009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected