90% plugin-cards

Code Review | Plugin Cards

WordPress plugin Plugin Cards scored90%from 54 tests.

About plugin

  • Plugin page: plugin-cards
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Dec 7, 2015
  • Number of updates: 15
  • Update frequency: every 14.0 days
  • Top authors: Braad (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20+ active /2,121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Plugin Cards
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.51 ▼3.73
Dashboard /wp-admin3.31 ▲0.0046.93 ▼2.29
Posts /wp-admin/edit.php3.36 ▲0.0047.54 ▼6.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.62 ▲2.58
Media Library /wp-admin/upload.php3.23 ▲0.0037.14 ▼1.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Cards
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.061.91 ▲0.2046.61 ▲9.08
Dashboard /wp-admin2,198 ▲275.63 ▼0.0388.75 ▲1.4539.70 ▼5.49
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0235.96 ▼4.3532.45 ▼3.16
Add New Post /wp-admin/post-new.php1,528 ▼923.23 ▲4.97675.60 ▲49.1551.89 ▼12.89
Media Library /wp-admin/upload.php1,391 ▼34.23 ▲0.02102.62 ▲2.3041.93 ▼1.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: tag, plugin, search, card, query...

plugin-cards/plugin-cards.php Passed 13 tests

The principal PHP file in "Plugin Cards" v. 1.2.2 is loaded by WordPress automatically on each request
126 characters long description:
Display plugin cards that match the style introduced in WordPress 4.0. Uses the wordpress.org API and supports custom queries.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin640 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17986337
CSS15425272
JavaScript14931

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin