10% orbisius-just-write

Code Review | Orbisius Just Write

WordPress plugin Orbisius Just Write scored 10% from 54 tests.

About plugin

  • Plugin page: orbisius-just-write
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.4
  • WordPress version: 6.3.1
  • First release: May 26, 2015
  • Latest release: Aug 5, 2015
  • Number of updates: 16
  • Update frequency: every 4.4 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,477 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/orbisius-just-write/modules/widgets.php+3
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.37ms] Passed 4 tests

An overview of server-side resources used by Orbisius Just Write
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.38 ▼36.56
Dashboard /wp-admin2.05 ▼1.266.97 ▼48.20
Posts /wp-admin/edit.php2.05 ▼1.315.66 ▼38.13
Add New Post /wp-admin/post-new.php2.05 ▼3.845.16 ▼90.57
Media Library /wp-admin/upload.php2.05 ▼1.186.22 ▼29.26
Orbisius Just Write /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php2.056.27

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_orb_just_write_widget_related
theysaidso_admin_options
widget_theysaidso_widget
widget_orb_just_write_widget
widget_recent-posts

Browser metrics Passed 4 tests

Orbisius Just Write: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.69 ▼0.961.72 ▼0.1845.70 ▼2.69
Dashboard /wp-admin2,223 ▲385.86 ▼0.05102.93 ▼0.3786.34 ▲45.49
Posts /wp-admin/edit.php2,100 ▲112.01 ▲0.0134.20 ▼6.4431.62 ▼2.95
Add New Post /wp-admin/post-new.php1,681 ▲14822.53 ▼0.78665.87 ▼17.8654.47 ▼10.14
Media Library /wp-admin/upload.php1,405 ▲144.19 ▼0.01100.99 ▼5.9970.98 ▲26.54
Orbisius Just Write /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php9602.0224.0026.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/orbisius-just-write/modules/widgets.php+3
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_orb_just_write_widget_related
    • can_compress_scripts
    • widget_orb_just_write_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php
    • > Deprecated in wp-content/plugins/orbisius-just-write/modules/widgets.php+4
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in orb_just_write_widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in orb_just_write_widget_related is deprecated since version 4.3.0! Use __construct() instead.

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
Please fix the following items
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/front.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/cpt.php:5
    • > PHP Warning
      Use of undefined constant ORBISIUS_JUST_WRITE_PLUGIN_NAME - assumed 'ORBISIUS_JUST_WRITE_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/orbisius-just-write/modules/templates/just_write_full_page.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/orbisius-just-write/orbisius-just-write.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/orbisius-just-write/modules/templates/just_write_full_page.php:41
    • > PHP Notice
      Undefined variable: just_write_cfg in wp-content/plugins/orbisius-just-write/modules/templates/just_write_full_page.php on line 39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/widgets.php:3

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Shows how the editor box looks like. Super cool.) image required
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

orbisius-just-write/orbisius-just-write.php Passed 13 tests

The principal PHP file in "Orbisius Just Write" v. 1.0.2 is loaded by WordPress automatically on each request
74 characters long description:
Show last viewed post(s) - 3 max, and recommend X number of related posts.

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
There were no executable files found in this plugin2,777 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP115196672,482
JavaScript26939284
CSS12011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods113
▷ Static methods108.85%
▷ Public methods113100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.86KB14.35KB▼ 54.97%
modules/images/icon.png0.44KB0.38KB▼ 13.11%