84% wp-owner-mark

Code Review | WP Owner Mark

WordPress plugin WP Owner Mark scored84%from 54 tests.

About plugin

  • Plugin page: wp-owner-mark
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 13, 2014
  • Latest release: Mar 10, 2014
  • Number of updates: 17
  • Update frequency: every 1.5 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,194 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
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼1.98ms] Passed 4 tests

An overview of server-side resources used by WP Owner Mark
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.03 ▼1.53
Dashboard /wp-admin3.24 ▼0.0641.11 ▼6.68
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▼0.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.43 ▲1.57
Media Library /wp-admin/upload.php3.23 ▲0.0034.52 ▲0.88

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Owner Mark
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.73 ▼0.931.86 ▼0.0342.84 ▼4.78
Dashboard /wp-admin2,207 ▲194.91 ▼0.03107.83 ▼7.6141.69 ▼2.21
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0540.22 ▲3.1137.50 ▲4.79
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▼0.21605.52 ▼88.8955.78 ▲1.29
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0397.62 ▼1.7444.60 ▼0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-owner-mark/wp-owner-mark.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: mark, owner, comments

wp-owner-mark/wp-owner-mark.php Passed 13 tests

This is the main PHP file of "WP Owner Mark" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Add Blog Owner Mark into your blog's comments.

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 detected34 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS20018
PHP1112216

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/vip.png4.03KB4.16KB0.00%