10% comfortable-reading

Code Review | Comfortable Reading

WordPress plugin Comfortable Reading scored10%from 54 tests.

About plugin

  • Plugin page: comfortable-reading
  • Plugin version: 1.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Dec 19, 2017
  • Number of updates: 35
  • Update frequency: every 28.3 days
  • Top authors: Flaeron (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /26,294 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/comfortable-reading/comfortable-reading.php+121
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_cr_plugin has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼52.49ms] Passed 4 tests

Analyzing server-side resources used by Comfortable Reading
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.54 ▼30.93
Dashboard /wp-admin2.10 ▼1.255.23 ▼49.96
Posts /wp-admin/edit.php2.10 ▼1.265.90 ▼37.52
Add New Post /wp-admin/post-new.php2.10 ▼3.796.66 ▼91.53
Media Library /wp-admin/upload.php2.10 ▼1.135.20 ▼30.04

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_wp_cr_plugin
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Comfortable Reading
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.55 ▼0.869.78 ▲8.1742.53 ▲1.93
Dashboard /wp-admin2,212 ▲325.52 ▼0.1386.62 ▼0.2268.02 ▲27.32
Posts /wp-admin/edit.php2,120 ▲171.99 ▼0.0137.43 ▲1.4333.37 ▼2.74
Add New Post /wp-admin/post-new.php1,703 ▲17524.62 ▲1.55682.75 ▲8.7347.98 ▼8.84
Media Library /wp-admin/upload.php1,420 ▲294.19 ▼0.0393.58 ▼7.5874.02 ▲31.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/comfortable-reading/comfortable-reading.php+121
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_cr_plugin has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_wp_cr_plugin
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comfortable-reading/comfortable-reading.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: assistive, font, color, size, vision...

comfortable-reading/comfortable-reading.php Passed 13 tests

Analyzing the main PHP file in "Comfortable Reading" version 1.6.6
69 characters long description:
Демо версия плагина для слабовидящих.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin404 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25110186
PHP13321110
CSS210108

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cr-admin-icon.png0.73KB0.84KB0.00%
img/eye-icon.png0.72KB0.93KB0.00%