84% resume-page

Code Review | Resume Page

WordPress plugin Resume Page scored84%from 54 tests.

About plugin

  • Plugin page: resume-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2013
  • Latest release: Nov 19, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: nphaskins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /5,110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▼13.41ms] Passed 4 tests

This is a short check of server-side resources used by Resume Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4336.81 ▼6.54
Dashboard /wp-admin3.79 ▲0.4449.19 ▼11.63
Posts /wp-admin/edit.php3.84 ▲0.4849.18 ▼0.53
Add New Post /wp-admin/post-new.php5.62 ▼0.2762.48 ▼34.95
Media Library /wp-admin/upload.php3.65 ▲0.4237.58 ▲6.33

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Resume Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.33 ▼0.954.36 ▲2.4441.65 ▼4.71
Dashboard /wp-admin2,211 ▲204.91 ▲0.05109.97 ▲5.8841.28 ▼1.69
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0640.36 ▼2.7535.13 ▼4.43
Add New Post /wp-admin/post-new.php1,549 ▲1623.20 ▲0.09693.20 ▲80.8335.92 ▼21.79
Media Library /wp-admin/upload.php1,395 ▲134.15 ▼0.06100.08 ▲3.1443.58 ▲0.35

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/resume-page/libs/custom-meta-boxes/example-functions.php:104
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/resume-page/libs/custom-meta-boxes/tests/testGroupField.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/resume-page/resume-page.php:15
    • > PHP Warning
      Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/resume-page/libs/custom-meta-boxes/custom-meta-boxes.php on line 41
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/resume-page/libs/custom-meta-boxes/tests/testField.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resume-page/libs/custom-meta-boxes/classes.fields.php:568
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/resume-page/templates/resume-page-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resume-page/libs/custom-meta-boxes/classes.fields.php:568
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/resume-page/libs/custom-meta-boxes/custom-meta-boxes.php on line 41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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: resume page, freelance portfolio, csv, resume, resume portfolio...

resume-page/resume-page.php Passed 13 tests

The main file in "Resume Page" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
117 characters long description:
Turns any Wordpress page into a beautiful Resume Page with built in Gihub activity and integrated lightbox portfolio.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected6,410 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
LESS155936122,247
PHP138703682,050
JavaScript18283137768
CSS37042679
SVG200415
PO File27176217
Markdown222034

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.23
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes13.85%
▷ Concrete classes2596.15%
▷ Final classes00.00%
Methods108
▷ Static methods21.85%
▷ Public methods10395.37%
▷ Protected methods10.93%
▷ Private methods43.70%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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
17 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/custom-meta-boxes/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
libs/custom-meta-boxes/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
libs/custom-meta-boxes/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
libs/custom-meta-boxes/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
libs/custom-meta-boxes/images/cmb-icon-remove@2x.png1.14KB0.23KB▼ 79.47%