10% nora-cta

Code Review | Nora-CTA - Really Simple Call To Action Manager

WordPress plugin Nora-CTA - Really Simple Call To Action Manager scored10%from 54 tests.

About plugin

  • Plugin page: nora-cta
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Apr 21, 2022
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: norando (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /199 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/nora-cta/nora-cta.php+523
    Non-static method Nora_CTA::init() should not be called statically

Server metrics [RAM: ▼1.97MB] [CPU: ▼58.19ms] Passed 4 tests

Analyzing server-side resources used by Nora-CTA - Really Simple Call To Action Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.67 ▼36.91
Dashboard /wp-admin2.05 ▼1.305.56 ▼59.59
Posts /wp-admin/edit.php2.05 ▼1.315.22 ▼41.49
Add New Post /wp-admin/post-new.php2.05 ▼3.845.26 ▼94.75
Media Library /wp-admin/upload.php2.05 ▼1.184.90 ▼33.05
CTA /wp-admin/edit.php?post_type=nora_cta2.055.09
Add New /wp-admin/post-new.php?post_type=nora_cta2.054.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Nora-CTA - Really Simple Call To Action Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.69 ▲0.342.10 ▲0.3147.32 ▲3.38
Dashboard /wp-admin2,224 ▲475.62 ▼0.0597.21 ▼8.9538.21 ▼3.85
Posts /wp-admin/edit.php2,129 ▲322.04 ▲0.0640.14 ▲5.3835.27 ▼1.47
Add New Post /wp-admin/post-new.php6,264 ▲4,73618.95 ▼4.25911.01 ▲223.3256.43 ▲6.40
Media Library /wp-admin/upload.php1,429 ▲294.26 ▲0.1899.75 ▼16.7744.28 ▼4.42
CTA /wp-admin/edit.php?post_type=nora_cta1,0931.9933.1331.57
Add New /wp-admin/post-new.php?post_type=nora_cta2,2507.51171.3672.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/nora-cta/nora-cta.php+523
    Non-static method Nora_CTA::init() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-content/plugins/nora-cta/nora-cta.php+523
    Non-static method Nora_CTA::init() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Nora_CTA::display_nora_cta() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Nora_CTA::load_textdomain() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Nora_CTA::register_cta_post_type() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Nora_CTA::admin_style() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-includes/class-wp-hook.php+312
    Non-static method Nora_CTA::save_meta_box() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-content/plugins/nora-cta/nora-cta.php+366
    Non-static method Nora_CTA::check_nonce() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Nora_CTA::add_cta_meta_box() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-admin/includes/template.php+1443
    Non-static method Nora_CTA::meta_box_ui() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Deprecated in wp-content/plugins/nora-cta/nora-cta.php+330
    Non-static method Nora_CTA::set_nonce() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Notice in wp-content/plugins/nora-cta/nora-cta.php+346
    Undefined variable: title
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Notice in wp-content/plugins/nora-cta/nora-cta.php+347
    Undefined variable: disc
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Notice in wp-content/plugins/nora-cta/nora-cta.php+348
    Undefined variable: btn_text
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Notice in wp-content/plugins/nora-cta/nora-cta.php+349
    Undefined variable: url
    • > GET request to /wp-admin/post-new.php?post_type=nora_cta
    • > Notice in wp-content/plugins/nora-cta/nora-cta.php+352
    Undefined variable: footer

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in nora-cta/assets to your readme.txt
You can look at the official readme.txt

nora-cta/nora-cta.php Passed 13 tests

The entry point to "Nora-CTA - Really Simple Call To Action Manager" version 1.0.1 is a PHP file that has certain tags in its header comment area
56 characters long description:
Nora-CTA plugin create and manage simple call-to-action.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected413 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP163124336
CSS25039
PO File1111138

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin