84% cc-manga-comic-reader

Code Review | CC Manga Comic Reader

WordPress plugin CC Manga Comic Reader scored 84% from 54 tests.

About plugin

  • Plugin page: cc-manga-comic-re...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Nov 21, 2017
  • Number of updates: 9
  • Update frequency: every 1.9 days
  • Top authors: cuongma111 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 6,726 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.01MB] [CPU: ▲5.52ms] Passed 4 tests

This is a short check of server-side resources used by CC Manga Comic Reader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.42 ▲0.9655.38 ▲16.50
Dashboard /wp-admin4.51 ▲1.2064.65 ▲15.34
Posts /wp-admin/edit.php4.55 ▲1.1961.10 ▲11.76
Add New Post /wp-admin/post-new.php6.62 ▲0.7386.16 ▼16.80
Media Library /wp-admin/upload.php4.40 ▲1.1746.21 ▲11.79
Category /wp-admin/edit-tags.php?taxonomy=cc-category&post_type=cc-manga4.4242.49
Tags /wp-admin/edit-tags.php?taxonomy=cc-tag&post_type=cc-manga4.4245.83
Add New /wp-admin/post-new.php?post_type=cc-chapter4.4953.65
All Manga /wp-admin/edit.php?post_type=cc-manga4.4746.06
All Chapter /wp-admin/edit.php?post_type=cc-chapter4.4741.83
Add New /wp-admin/post-new.php?post_type=cc-manga4.5357.94

Server storage [IO: ▲2.15MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 120 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
_cs_options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for CC Manga Comic Reader
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,171 ▲43615.80 ▲1.4511.49 ▲9.8547.06 ▲4.60
Dashboard /wp-admin2,470 ▲2827.02 ▲1.98125.91 ▲22.1040.51 ▼1.29
Posts /wp-admin/edit.php2,382 ▲2933.57 ▲1.5572.56 ▲34.3538.19 ▲2.63
Add New Post /wp-admin/post-new.php6,608 ▲5,06620.71 ▲2.28912.37 ▲287.8445.43 ▼4.00
Media Library /wp-admin/upload.php1,515 ▲1244.83 ▲0.6584.86 ▼8.4948.19 ▲0.78
Category /wp-admin/edit-tags.php?taxonomy=cc-category&post_type=cc-manga1,5523.8051.9831.52
Tags /wp-admin/edit-tags.php?taxonomy=cc-tag&post_type=cc-manga1,5243.6645.0729.36
Add New /wp-admin/post-new.php?post_type=cc-chapter1,6774.2162.9631.45
All Manga /wp-admin/edit.php?post_type=cc-manga1,3563.8751.6130.51
All Chapter /wp-admin/edit.php?post_type=cc-chapter1,3403.8452.5228.44
Add New /wp-admin/post-new.php?post_type=cc-manga2,4537.75172.6263.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • _cs_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/cc-manga-comic-reader/templates/chapter.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: amime, comic, manga

cc-manga-comic-reader/main.php 92% from 13 tests

The principal PHP file in "CC Manga Comic Reader" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cc-manga-comic-reader.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected32,032 lines of code in 99 files:
LanguageFilesBlank linesComment linesLines of code
JSON20013,773
PHP641,6611,5335,916
JavaScript91,0858034,594
CSS9180714,245
Sass531201,952
PO File7306334705
SVG100685
Markdown2270162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity13.65
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes25.88%
▷ Concrete classes3294.12%
▷ Final classes00.00%
Methods109
▷ Static methods54.59%
▷ Public methods10697.25%
▷ Protected methods32.75%
▷ Private methods00.00%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/codestar-framework/assets/images/chosen-sprite.png0.53KB0.88KB0.00%
lib/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
lib/codestar-framework/assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%