63% athlon-manage-calameo-publications

Code Review | Manage Calameo Publications by Athlon

WordPress plugin Manage Calameo Publications by Athlon scored63%from 54 tests.

About plugin

  • Plugin page: athlon-manage-cal...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2013
  • Latest release: Jan 7, 2014
  • Number of updates: 21
  • Update frequency: every 14.3 days
  • Top authors: athlonproduction (85.71%)rozalia.stoilova (19.05%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,073 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.08MB] [CPU: ▼40.43ms] Passed 4 tests

Analyzing server-side resources used by Manage Calameo Publications by Athlon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5716.81 ▼25.70
Dashboard /wp-admin2.93 ▼0.3726.49 ▼29.14
Posts /wp-admin/edit.php2.93 ▼0.4217.72 ▼32.36
Add New Post /wp-admin/post-new.php2.93 ▼2.9518.07 ▼74.51
Media Library /wp-admin/upload.php2.93 ▼0.3017.00 ▼23.11
Calameo Credentials /wp-admin/options-general.php?page=calameo_credentials2.9318.63

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: 1 new table, 7 new options
New tables
wp_calameo_publications
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
AthlonManageCalameoPublications_db_version
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Manage Calameo Publications by Athlon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.18 ▼0.101.85 ▼0.2244.28 ▼2.38
Dashboard /wp-admin2,203 ▲295.64 ▼0.02100.34 ▲3.2445.01 ▲2.27
Posts /wp-admin/edit.php2,108 ▲81.99 ▼0.0734.62 ▼3.0832.32 ▼4.20
Add New Post /wp-admin/post-new.php1,533 ▲523.80 ▲0.80651.92 ▼57.9151.91 ▼2.34
Media Library /wp-admin/upload.php1,432 ▲324.23 ▲0.09104.42 ▲3.6044.75 ▲0.28
Calameo Credentials /wp-admin/options-general.php?page=calameo_credentials9522.0424.3126.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AthlonCalameoRegisterFunctions::ath_add_calameo_button() should not be called statically
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • AthlonManageCalameoPublications_db_version
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=calameo_credentials
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AthlonCalameoRegisterFunctions::ath_add_calameo_button() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=calameo_credentials
    • > Warning in wp-content/plugins/athlon-manage-calameo-publications/settings/register-settings.php+17
    Use of undefined constant ASSETS_JAVASCRIPTS_IN_FOOTER - assumed 'ASSETS_JAVASCRIPTS_IN_FOOTER' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=calameo_credentials
    • > Notice in wp-content/plugins/athlon-manage-calameo-publications/settings/register-settings.php+173
    Undefined variable: calameo_credentials
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=calameo_credentials
    • > Notice in wp-content/plugins/athlon-manage-calameo-publications/settings/register-settings.php+94
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=calameo_credentials
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AthlonCalameoRegisterFunctions::ath_wp_calameo_not_installed_warning() should not be called statically

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/athlon-manage-calameo-publications/thickbox_content.php
    • > /wp-content/plugins/athlon-manage-calameo-publications/assets/js/libs/calameo_dialog.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AthlonCalameoManageConfiguration' not found in wp-content/plugins/athlon-manage-calameo-publications/settings/register-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/athlon-manage-calameo-publications/functions.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/athlon-manage-calameo-publications/athlon-manage-calameo-publications.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/athlon-manage-calameo-publications/post_types/media.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: documents preview, calameo viewer, publication, share document, embed documents...

athlon-manage-calameo-publications/athlon-manage-calameo-publications.php Passed 13 tests

The primary PHP file in "Manage Calameo Publications by Athlon" version 1.1.1 is used by WordPress to initiate all plugin functionality
112 characters long description:
Tool for management and embedding various types of documents and present them in a custom styled Calameo viewer.

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
No dangerous file extensions were detected1,983 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP91331151,466
JavaScript8382391
CSS115091
XML10035

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods1038.46%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin