89% codelibs

Code Review | CodeLibs

WordPress plugin CodeLibs scored89%from 54 tests.

About plugin

  • Plugin page: codelibs
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.3.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2012
  • Latest release: Jan 11, 2012
  • Number of updates: 53
  • Update frequency: every 0.2 days
  • Top authors: agnelwaghela (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,992 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.72ms] Passed 4 tests

A check of server-side resources used by CodeLibs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.41 ▼5.34
Dashboard /wp-admin3.31 ▲0.0049.81 ▼9.63
Posts /wp-admin/edit.php3.36 ▲0.0055.30 ▲2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.97 ▼27.04
Media Library /wp-admin/upload.php3.23 ▲0.0037.28 ▼0.88

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 114 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for CodeLibs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.74 ▲0.351.88 ▼0.2742.04 ▼1.37
Dashboard /wp-admin2,198 ▲185.65 ▼0.0589.51 ▼10.5437.02 ▼7.20
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0039.90 ▲3.0137.63 ▲0.80
Add New Post /wp-admin/post-new.php1,531 ▼2323.32 ▲5.25693.90 ▲42.6559.35 ▲9.14
Media Library /wp-admin/upload.php1,397 ▼04.27 ▲0.0697.92 ▼5.7344.84 ▲0.92

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Tags: You are using too many tags: 20 tag instead of maximum 10
You can take inspiration from this readme.txt

codelibs/codelibs.php Passed 13 tests

The main PHP script in "CodeLibs" version 1.3 is automatically included on every request by WordPress
44 characters long description:
Complete Collection of Javascript Libraries.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin12,212 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110811,20912,153
PHP271759

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.76
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%
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
There are no PNG files in this plugin