84% currently-editing

Code Review | Currently Editing

WordPress plugin Currently Editing scored84%from 54 tests.

About plugin

  • Plugin page: currently-editing
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Apr 26, 2013
  • Latest release: Apr 29, 2013
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: mountaininja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,060 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: ▼17.24ms] Passed 4 tests

This is a short check of server-side resources used by Currently Editing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.91 ▼5.57
Dashboard /wp-admin3.31 ▼0.0345.87 ▼18.76
Posts /wp-admin/edit.php3.25 ▼0.1129.81 ▼18.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.64 ▼26.48
Media Library /wp-admin/upload.php3.24 ▲0.0136.48 ▼0.93

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Currently Editing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.081.79 ▼0.3044.69 ▼1.28
Dashboard /wp-admin2,203 ▲215.80 ▼0.09108.09 ▲1.0236.39 ▼9.01
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0534.95 ▼2.4632.91 ▼1.37
Add New Post /wp-admin/post-new.php1,534 ▲123.19 ▼0.16678.77 ▼14.4556.64 ▼2.29
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0194.46 ▼16.6442.28 ▼4.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/currently-editing/currently-editing.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "brandoncamenisch.com"
  • Screenshots: Screenshot #1 (screenshot1.png) image missing
The official readme.txt might help

currently-editing/currently-editing.php Passed 13 tests

This is the main PHP file of "Currently Editing" version 1.01, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Currently Editing tells whos editing what

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected41 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192229
CSS1006
JavaScript1316

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png154.22KB49.17KB▼ 68.12%