84% wp-copyrighted-post

Code Review | Copyrighted Post

WordPress plugin Copyrighted Post scored84%from 54 tests.

About plugin

  • Plugin page: wp-copyrighted-post
  • Plugin version: 1.2.23
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2009
  • Latest release: Oct 27, 2022
  • Number of updates: 44
  • Update frequency: every 111.1 days
  • Top authors: minimus (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /26,604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.63ms] Passed 4 tests

Analyzing server-side resources used by Copyrighted Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.46 ▲1.41
Dashboard /wp-admin3.37 ▲0.0755.17 ▼1.12
Posts /wp-admin/edit.php3.42 ▲0.0749.66 ▼6.92
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.43 ▼5.23
Media Library /wp-admin/upload.php3.30 ▲0.0736.44 ▼1.24

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
CopyrightedPostAdminOptions
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Copyrighted Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.461.80 ▲0.0343.70 ▲1.10
Dashboard /wp-admin2,195 ▲185.67 ▲0.0789.03 ▼7.1138.97 ▼3.81
Posts /wp-admin/edit.php2,100 ▼41.97 ▼0.0539.33 ▲3.6835.93 ▼1.11
Add New Post /wp-admin/post-new.php1,526 ▼223.75 ▲0.69670.62 ▲24.0155.76 ▲2.83
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0199.50 ▼5.6543.10 ▼0.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 add_action() in wp-content/plugins/wp-copyrighted-post/wp-copyrighted-post.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

wp-copyrighted-post/wp-copyrighted-post.php Passed 13 tests

The main PHP file in "Copyrighted Post" ver. 1.2.23 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Adds copyright notice in the end of each post of your blog. Visit SimpleLib blog for more details.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected319 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File36879168
PHP12322151

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin