84% creative-commons-tagger

Code Review | Creative Commons Tagger

WordPress plugin Creative Commons Tagger scored84%from 54 tests.

About plugin

  • Plugin page: creative-commons-...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 20, 2013
  • Latest release: Dec 30, 2013
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: Haldaug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,339 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Creative Commons Tagger
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.08 ▼1.57
Dashboard /wp-admin3.36 ▲0.0655.26 ▼1.24
Posts /wp-admin/edit.php3.41 ▲0.0652.75 ▲5.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.91 ▼16.44
Media Library /wp-admin/upload.php3.29 ▲0.0641.22 ▲0.19
Creative Commons Tagger /wp-admin/options-general.php?page=creative-commons-tagger/creative-commons-tagger.php3.2536.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Creative Commons Tagger
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.44 ▲0.151.83 ▼0.9643.37 ▼0.37
Dashboard /wp-admin2,225 ▲254.88 ▼0.94110.97 ▲10.1542.43 ▼2.15
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0333.26 ▼4.6134.61 ▼2.19
Add New Post /wp-admin/post-new.php1,548 ▲323.09 ▼0.11662.91 ▼44.1853.08 ▼6.00
Media Library /wp-admin/upload.php1,398 ▼24.26 ▲0.0597.10 ▼30.0939.84 ▼13.94
Creative Commons Tagger /wp-admin/options-general.php?page=creative-commons-tagger/creative-commons-tagger.php8132.0625.0228.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • 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
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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/creative-commons-tagger/creative-commons-tagger.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/creative-commons-tagger/custom_medias_fields.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: license, creative commons, images, cc

creative-commons-tagger/creative-commons-tagger.php Passed 13 tests

This is the main PHP file of "Creative Commons Tagger" version 0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Taggs wp-caption with creative commons licensing information saved in custom fields.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,486 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
HTML11210454
CSS49622447
PHP27656306
SVG100206
PO File1232666
JavaScript1007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity8.17
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected