94% wp-calameo

Code Review | WP Calameo

WordPress plugin WP Calameo scored 94% from 53 tests.

About plugin

  • Plugin page: wp-calameo
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-5.7
  • WordPress version: 5.8.1
  • First release: Dec 21, 2009
  • Latest release: Mar 3, 2021
  • Number of updates: 53
  • Update frequency: every 77.2 days
  • Top authors: calameo (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

4,000+ active / 54,926 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by WP Calameo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.26 ▲10.80
Dashboard /wp-admin3.06 ▲0.0132.41 ▼13.00
Posts /wp-admin/edit.php3.11 ▼0.0042.64 ▼15.98
Add New Post /wp-admin/post-new.php5.42 ▼0.0281.10 ▼1,285.43
Media Library /wp-admin/upload.php3.00 ▲0.0031.37 ▼5.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Calameo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲9216.11 ▲0.487.71 ▲0.3945.87 ▼0.91
Dashboard /wp-admin2,931 ▲785.93 ▲0.05138.07 ▲4.71116.23 ▲10.12
Posts /wp-admin/edit.php2,706 ▲32.69 ▼0.1267.57 ▼2.0486.30 ▼0.03
Add New Post /wp-admin/post-new.php1,853 ▲19718.98 ▲2.20353.34 ▼8.12103.64 ▲2.06
Media Library /wp-admin/upload.php1,775 ▲35.00 ▲0.00136.40 ▼34.56112.63 ▼3.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/wp-calameo/wp-calameo.php:214

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: publication, embed, document, minicalameo, widget...

wp-calameo/wp-calameo.php Passed 13 tests

The main PHP file in "WP Calameo" ver. 2.1.5 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Embed Calameo publications & miniCalameo in a shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin167 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12426167

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity20.50
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.03MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png12.25KB11.99KB▼ 2.14%
screenshot-1.png18.60KB18.12KB▼ 2.59%
screenshot-2.png4.84KB4.65KB▼ 3.87%