84% ccg-manager

Code Review | CCG Manager

WordPress plugin CCG Manager scored84%from 54 tests.

About plugin

  • Plugin page: ccg-manager
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.6
  • WordPress version: 6.3.1
  • First release: Jun 7, 2013
  • Latest release: Jun 7, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: jazzs3quence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.80ms] Passed 4 tests

Analyzing server-side resources used by CCG Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.13 ▼2.44
Dashboard /wp-admin3.35 ▲0.0548.36 ▼2.77
Posts /wp-admin/edit.php3.40 ▲0.0445.71 ▲1.82
Add New Post /wp-admin/post-new.php5.93 ▲0.0581.67 ▼3.61
Media Library /wp-admin/upload.php3.27 ▲0.0435.60 ▲1.63
CCG Manager /wp-admin/edit.php?post_type=ccg_card3.3132.48
Collections /wp-admin/edit-tags.php?taxonomy=ccg_collection&post_type=ccg_card3.2734.58
Series /wp-admin/edit-tags.php?taxonomy=ccg_series&post_type=ccg_card3.2631.80
Add New Card /wp-admin/post-new.php?post_type=ccg_card3.4049.27

Server storage [IO: ▲0.75MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for CCG Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.27 ▼1.164.75 ▲2.7439.94 ▼7.14
Dashboard /wp-admin2,232 ▲475.85 ▼0.04108.93 ▼8.9137.76 ▼4.33
Posts /wp-admin/edit.php2,112 ▲232.01 ▲0.0134.84 ▼0.3235.39 ▼0.28
Add New Post /wp-admin/post-new.php1,540 ▲423.26 ▲0.15674.63 ▲17.7262.62 ▼3.34
Media Library /wp-admin/upload.php1,408 ▲204.18 ▼0.0297.55 ▲0.8842.25 ▲0.06
CCG Manager /wp-admin/edit.php?post_type=ccg_card1,0942.0932.2329.26
Collections /wp-admin/edit-tags.php?taxonomy=ccg_collection&post_type=ccg_card1,2882.1427.5328.18
Series /wp-admin/edit-tags.php?taxonomy=ccg_series&post_type=ccg_card1,2852.2525.8928.02
Add New Card /wp-admin/post-new.php?post_type=ccg_card2,4577.82170.6662.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ccg-manager/ccg-manager.php:53

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: pokemon, collectable card game, magic the gathering, card manager, ccg...

ccg-manager/ccg-manager.php Passed 13 tests

The main file in "CCG Manager" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
A WordPress plugin to manage your CCG collection.

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
No dangerous file extensions were detected283 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13325251
Markdown120032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/card-icon-32.png2.95KB1.51KB▼ 48.87%
images/card-icon-64.png6.45KB2.52KB▼ 60.88%
images/card-mini.png1.71KB0.74KB▼ 56.59%