83% odyssey-resumes

Code Review | Odyssey Resumes

WordPress plugin Odyssey Resumes scored 83% from 54 tests.

About plugin

  • Plugin page: odyssey-resumes
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2020
  • Latest release: Mar 19, 2020
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: wordpressnoob777 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Odyssey Resumes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.72 ▼2.90
Dashboard /wp-admin3.31 ▲0.0042.69 ▼5.84
Posts /wp-admin/edit.php3.36 ▲0.0047.60 ▲2.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.40 ▼10.43
Media Library /wp-admin/upload.php3.23 ▲0.0033.06 ▲0.74

Server storage [IO: ▲3.10MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Odyssey Resumes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.191.64 ▼0.1046.98 ▲6.13
Dashboard /wp-admin2,206 ▲184.85 ▼0.03109.08 ▲4.4342.90 ▲2.53
Posts /wp-admin/edit.php2,089 ▲212.01 ▼0.0339.80 ▲5.4235.04 ▲3.81
Add New Post /wp-admin/post-new.php1,513 ▼2017.61 ▼5.81627.63 ▲24.2551.47 ▲7.74
Media Library /wp-admin/upload.php1,388 ▲34.12 ▼0.0693.24 ▼0.0439.31 ▼0.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/odyssey-resumes/templates/default/footer.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/odyssey-resumes/functions.php:19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/odyssey-resumes/templates/default/footer.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/odyssey-resumes/templates/default/footer.php:33
    • > PHP Notice
      Undefined variable: fields in wp-content/plugins/odyssey-resumes/templates/default/footer.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/odyssey-resumes/templates/default/header.php:2
    • > PHP Notice
      Undefined variable: fields in wp-content/plugins/odyssey-resumes/templates/default/footer.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/odyssey-resumes/templates/default-child/header.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: resume, resumes, profile

odyssey-resumes/main.php 77% from 13 tests

Analyzing the main PHP file in "Odyssey Resumes" version 1.0.0
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("odyssey-resumes.php" instead of "main.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "3.1.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,632 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JSON3005,062
Sass225519978
SQL1191288974
CSS61325903
PHP10172112553
SVG301114
JavaScript118648

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods342.86%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.61MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot4.png358.71KB95.52KB▼ 73.37%
screenshot2.png91.03KB23.91KB▼ 73.73%
screenshot1.png88.15KB22.13KB▼ 74.89%
templates/default/images/portfolio/booz-allen.png7.42KB7.24KB▼ 2.42%
screenshot3.png74.53KB14.54KB▼ 80.49%